package ModelLayer;
import java.util.ArrayList;

/**
 * This Class represent the employee
 * @author frankeskelund
 *
 */
	
public class Employee 
{

	private int employeeNumber;
	private ArrayList<Sale> sales;
	
	
	public Employee(int employeeNumber) 
	{
		super();
		this.employeeNumber = employeeNumber;
		sales = new ArrayList<Sale>();
	}


	/**
	 * An ArrayList for storing the sales of employee
	 * @param sales is added to ArrayList sale
	 */
	public void addSale(Sale employeeSale) 
	{
        sales.add(employeeSale);
     }

	/**
	 * Gets the employee number for this employee
	 * @return Employee there contains the employee number
	 */
	public int getEmployeeNumber() 
	{
		return employeeNumber;
	}

	/**
	 * Sets the employee number for this employee
	 * @param CO to set
	 */
	public void setEmployeeNumber(int employeeNumber) 
	{
		this.employeeNumber = employeeNumber;
	}	
}
